﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace XMLSpreadGear.Core
{
    public class Job
    {
        private string m_header, m_styleID;
        private bool m_headerjob;
        private IEnumerable objdata;
        private bool m_begingroup;

        public Job(string header, string styleID,bool beginGroup)
        {
            this.m_header = header;
            this.m_styleID = styleID;
            this.m_begingroup = beginGroup;

            m_headerjob = true;
        }

        public Job(IEnumerable data, string header, string headerStyleID, bool beginGroup)
        {
            this.objdata = data;
            this.m_header = header;
            this.m_styleID = headerStyleID;
            this.m_begingroup = beginGroup;

            m_headerjob = false;
        }

        internal string HeaderString
        {
            get { return this.m_header; }
        }

        internal string HeaderStyleID
        {
            get { return this.m_styleID; }
        }

        internal IEnumerable DataObject
        {
            get { return this.objdata; }
        }
        internal bool IsHaderJob
        {
            get { return m_headerjob; }
        }

        internal bool BeginGroup
        {
            get { return this.m_begingroup; }
        }

    }
}
